package vn.co.thn.web.demo_app_engine.jpa;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Transient;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
@Entity
public class Store {
	@Id
	private String Key;
	private int Id;
	private String Name;
	private String Image_Url;
	private String Address;
	private String Lat;
	private String Log;
	private String Description;
	private int Category_Id;

	public String getKey() {
		return Key;
	}

	public void setKey(String key) {
		Key = key;
	}

	public int getId() {
		return Id;
	}

	public void setId(int id) {
		Id = id;
	}

	public String getName() {
		return Name;
	}

	public void setName(String name) {
		Name = name;
	}

	public String getImage_Url() {
		return Image_Url;
	}

	public void setImage_Url(String image_Url) {
		Image_Url = image_Url;
	}

	public String getAddress() {
		return Address;
	}

	public void setAddress(String address) {
		Address = address;
	}

	public String getLat() {
		return Lat;
	}

	public void setLat(String lat) {
		Lat = lat;
	}

	public String getLog() {
		return Log;
	}

	public void setLog(String log) {
		Log = log;
	}

	public String getDescription() {
		return Description;
	}

	public void setDescription(String description) {
		Description = description;
	}

	public int getCategory_Id() {
		return Category_Id;
	}

	public void setCategory_Id(int category_ID) {
		Category_Id = category_ID;
	}

	@Transient
	public void CreateKey() {
		this.Key = this.Id + "";
	}

}
